bazel_dep(name = "bazel_skylib", version = "1.5.0")

bazel_dep(name = "googletest", dev_dependency = True)
local_path_override(
    module_name = "googletest",
    path = "external/googletest",
)

bazel_dep(name = "re2", dev_dependency = True)
local_path_override(
    module_name = "re2",
    path = "external/re2",
)

bazel_dep(name = "effcee", dev_dependency = True)
local_path_override(
    module_name = "effcee",
    path = "external/effcee",
)

bazel_dep(name = "rules_python",
          version = "0.34.0")

# https://rules-python.readthedocs.io/en/stable/toolchains.html#library-modules-with-dev-only-python-usage
python = use_extension(
    "@rules_python//python/extensions:python.bzl",
    "python",
    dev_dependency = True
)

python.toolchain(python_version = "3.12",
                 is_default = True,
                 ignore_root_user_error = True)
